$OpenBSD: patch-src_hugin_base_CMakeLists_txt,v 1.2 2014/01/14 04:20:20 kirby Exp $

/usr/local/include/boost/config/requires_threads.hpp:47:5: error:
#error "Compiler threading support is not turned on. Please set the
correct command line options for threading: -pthread (Linux),
-pthreads (Solaris) or -mthreads (Mingw32)"

--- src/hugin_base/CMakeLists.txt.orig	Sun Oct 27 15:17:05 2013
+++ src/hugin_base/CMakeLists.txt	Wed Jan  8 00:19:07 2014
@@ -127,6 +127,8 @@ vigra_ext/MultiThreadOperations.h
 vigra_ext/ImageTransformsGPU.h
 )
 
+set(CMAKE_CXX_FLAGS "-pthread ${CMAKE_CXX_FLAGS}")
+
 IF (${HUGIN_SHARED_LIBS})
   add_library(huginbase SHARED ${HUGIN_BASE_SRC} ${HUGIN_BASE_HEADER})
   target_link_libraries(huginbase ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
